import java.util.*;

/**
 * @author LKQ
 * @date 2022/6/14 19:36
 * @description 最小公倍数为 两数乘积 / 最大公约数
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int a = sc.nextInt(), b = sc.nextInt();
            System.out.println(a * b / gcd(a, b));
        }
    }
    public static int gcd(int a, int b) {
        return b != 0 ? gcd(b, a % b) : a;
    }
}
